<?php

class Session {

    function __construct() {
        session_start();
    }

    public function set($key, $value) {
        $_SESSION[$key] = $value;
    }

    public function get($key) {
        if (!isset($_SESSION[$key])) {
            return false;
        } else {
            return $_SESSION[$key];
        }
    }

    public function remove($key) {
        unset($_SESSION[$key]);
    }

    public function destroy() {
        $_SESSION = array();
    }

}